package cm.day04;

import java.util.Scanner;
import java.util.StringJoiner;

public class Test1 {
    public static void main(String[] args) {
        //键盘录入
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入年龄和身高：(年龄是整数，身高是小数，中间使用逗号分隔)");
        //分割
        StringJoiner sj = new StringJoiner(",");
        String str = sc.next();

        String[] stu1 = str.split(",");
        int age = Integer.parseInt(stu1[0]);
        double heigth = Double.parseDouble(stu1[1]);
        System.out.println("转成整数后的年龄是：" + age);
        System.out.println("转成小数后的身高是：" + heigth);

    }


}
